package com.hms.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.hms.dao.ILocationDao;
import com.hms.entity.TdLocation;
import com.hms.service.ILocationService;

@Service("locationService")
@Transactional
public class LocationService extends BaseService<TdLocation, String> implements ILocationService {

	@Resource(name = "locationDao")
	private ILocationDao locationDao;

	@Resource(name = "locationDao")
	public void setBaseDao(ILocationDao locationDao) {
		super.setBaseDao(locationDao);
	}

	@Override
	public List<TdLocation> getRootLocationList() {
		List<TdLocation> rootLoction = locationDao.getRootLocationList();
		if (null != rootLoction) {
			// /做持久化
		}
		return rootLoction;
	}

	@Override
	public List<TdLocation> getParentLocationList(TdLocation childrenLocation) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<TdLocation> getAllChildrenLocationList(TdLocation parentLocation) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<TdLocation> getAllImportCityList() {
		// TODO Auto-generated method stub
		return null;
	}

}
